/*
 * @Author: your name
 * @Date: 2022-03-17 20:42:44
 * @LastEditTime: 2022-04-18 22:03:24
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \react-antd-admin\vue-admin-template\src\api\carousel.js
 */
import request from '@/utils/request'

// 分页获取所有轮播图
export function getAllCarousels(data) {
  return request({
    url: '/carousel/findAllCarousel',
    method: 'get',
    params: data
  })
}
// 添加轮播图
export function createCarousel(data) {
  return request({
    url: '/carousel/createCarousel',
    method: 'post',
    data
  })
}
// 添加轮播图
export function updateCarousel(data) {
  return request({
    url: '/carousel/updateCarouselById',
    method: 'post',
    data
  })
}
// 删除轮播图
export function deleteCarousel(data) {
  return request({
    url: '/carousel/deleteCarouselById',
    method: 'delete',
    data
  })
}